#pragma once

#include <tuple>
#include <QVariantMap>
#include <QList>

#include "Type/NewsGroup.h"

namespace TCServer
{
	namespace Manager
	{
		class NewsGroupManager
		{
		private:
			NewsGroupManager();
		public:
			~NewsGroupManager();
		public:
			quint64 insert(const Type::NewsGroup &newsGroup);
			void update(const Type::NewsGroup &newsGroup);
			void remove(quint64 id);
			QList<Type::NewsGroup> queryAll();
		public:
			static NewsGroupManager* instance();
		};
	}
}